{block name='breadcrumb'}
{/block}

<div id='divGrid'>
<table id='dataTableTarefa' class='tableList'>
	<thead>
		<tr>
			<th><a href='#'>N°</a></th>
			<th style='width:150px'><a href='#'>Título</a></th>
			<th><a href='#'>Solicitante</a></th>
			<th><a href='#'>Status</a></th>
			<th><a href='#'>Tipo</a></th>
			<th style='width:75px'><a href='#'>Cadastro</a></th>
			<th><a href='#'>Prazo</a></th>
			<th><a href='#'>Finalizado</a></th>
			<th><a href='#'>Equipe</a></th>
			<th><a href='#'>Resp.</a></th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$query key=k item=i}
		<tr>
			<td>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->numero($i)}</td>
			<td class='txtLeft ellipsis' style='width:150px'>
				{$i->getDsTitulo()}
				<ul class="actionsTable">
					<li>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->interacao($i)}</li>
					<li>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->atribuir($i)}</li>
					<li>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->atualizar($i)}</li>
					<li>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->fechar($i)}</li>
					<li>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->reabrir($i)}</li>
					<li>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->avaliar($i)}</li>
				</ul>
			</td>
			<td class='txtLeft'>{$i->getSolicitante()}</td>
			<td class='txtLeft'>{$i->getStatus()}</td>
			<td class='txtLeft'>{$i->getTipo()}</td>
			<td class='txtLeft ellipsis' style='width:75px' title="{$i->getDtCadastro()->format('d/m/Y H:i')}">{$i->getDtCadastro()->format('d/m/Y')}</td>
			<td class='txtLeft'>{$Action->getClass('\Helper\Action\Intelihelp\Tarefa')->getPrazo($i)}</td>
			<td class='txtLeft'>{$i->getFinalizacao()}</td>
			<td class='txtLeft'>{$i->getEquipe()}</td>
			<td class='txtLeft'>{$i->getResponsavel()}</td>
		</tr>
		{/foreach}
	</tbody>
</table>
</div>

{block name='javascript'}
	<script type="text/javascript">
		$(document).ready(function() {
			//initPagination();
			initDataTable('#dataTableTarefa');
			$('.overTitle').tooltip();
			$('.overlay').popover();
		})
	</script>
{/block}